<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="ie6 ielt7 ielt8 ielt9"><![endif]--><!--[if IE 7 ]><html lang="en" class="ie7 ielt8 ielt9"><![endif]--><!--[if IE 8 ]><html lang="en" class="ie8 ielt9"><![endif]--><!--[if IE 9 ]><html lang="en" class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><!--<![endif]-->
	<head>
		<meta charset="utf-8">
		<title>Messages</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link href="/css/bootstrap1.min.css" rel="stylesheet">
		<link href="/css/bootstrap1-responsive.min.css" rel="stylesheet">
		<link href="/css/site.css" rel="stylesheet">
		<link href="/css/my.css" rel="stylesheet">
		<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	</head>
	<body>
		<div class="container">
			<div th:insert="~{Common/ownCommon::topbar(active='om')}"></div>
			<div class="row">
				<div th:insert="~{Common/ownCommon::sidebar(active='om')}"></div>

				<div class="span9">
					<h1>我的消息</h1>

					<legend>我收到的消息</legend>
					<ul class="messages">
						<li class="well" th:each="tm:${toMes}">
							<p class="message" th:text="${tm.get('Content')}">
							</p>
							<span class="meta">来自<em th:text="${tm.get('from')}"></em> 消息 <em th:text="   ${tm.get('msg_status')==0?'未读   ':'已读   '}"></em>
							<a class="toggle-link" th:if="${tm.get('msg_status')==0}" th:href="@{/ownSetMsgSta/} + ${tm.get('id')}"><i class="icon-ok"></i> 收件</a>
							</span>

						</li>
					</ul>

					<legend>我发送过的消息</legend>
					<ul class="messages">
						<li class="well" th:each="fm:${fromMes}">
							<p class="message" th:text="${fm.get('Content')}">
							</p>
							<span class="meta">发送至:<em th:text="${fm.get('to')}"></em></span>
						</li>
					</ul>
				</div>
			</div>
		</div>

		<script src="/js/jquery.min.js"></script>
		<script src="/js/bootstrap.min.js"></script>
		<script src="/js/site.js"></script>
	</body>
</html>
